﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MySql.Data.MySqlClient;
using Cinemon;
using Cinemon.MySqlConnect;

public partial class Movie_view : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (DatabaseManager manager = new DatabaseManager())
        {
            DataTable table = manager.ExecuteQuery("GetAllMovies");
            GridView1.DataSource = table;
            GridView1.DataBind();
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("add.aspx");
    }
    protected void movieGrid_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}